function tableString = dispTable(table)

[tableHeight, tableWidth] = size(table);

format('compact');
t = [table; 1 : tableWidth];
s = mat2str(t);
s = s(2 : end - 1);
r = regexp(s, ';', 'split');
for i = 1 : tableHeight
    disp(regexprep(r(i), '0', ' '));
end
disp(r(end));
format('loose');

tableString = r;
